﻿

export default [
  // {
  //   path: '/login',
  //   component: '@/pages/user/login'
  // },
  {
    path: '/login',
    layout: false,
    component: '@/pages/user/login'
  },
  {
    exact: true,
    path: '/home',
    redirect: '/home/list'
  },
  {
    path: '/home',
    name: "首页",
    icon: 'smile',
    "component": '@/layouts/BasicLayout',
    routes: [
      {
        path: '/home/list',
        name: '首页',
        component: '@/pages/home'
      }
    ]
  },
  {
    "path": "/pms",
    "component": '@/layouts/BasicLayout',
    // "component": require('@/layouts/BasicLayout').default,
    "name": "商品管理",
    icon: 'smile',
    "routes": [
      {
        "path": "product",
        "name": "商品列表",
        icon: 'smile',
        "component": "@/pages/pms/product/index",
        // "component": require('@/pages/pms/product/index').default,
        "exact": true
      },
      {
        icon: 'smile',
        "path": "addProduct",
        "name": "addProduct",
        "component": "@/pages/pms/product/add",
        // "component": require('@/pages/pms/product/add').default,
        "exact": true
      },
      {
        icon: 'smile',
        "path": "updateProduct",
        "name": "updateProduct",
        "component": "@/pages/pms/product/update",
        // "component": require('@/pages/pms/product/update').default,
        "exact": true
      },
      {
        icon: 'smile',
        "path": "productCate",
        "name": "productCate",
        "component": "@/pages/pms/productCate/index",
        // "component": require('@/pages/pms/productCate/index').default,
        "exact": true
      },
      {
        icon: 'smile',
        "path": "addProductCate",
        "name": "addProductCate",
        "component": "@/pages/pms/productCate/add",
        // "component": require('@/pages/pms/productCate/add').default,
        "exact": true
      },
      {
        icon: 'smile',
        "path": "updateProductCate",
        "name": "updateProductCate",
        "component": "@/pages/pms/productCate/update",
        // "component": require('@/pages/pms/productCate/update').default,
        "exact": true
      },
      {
        icon: 'smile',
        "path": "productAttr",
        "name": "productAttr",
        "component": "@/pages/pms/productAttr/index",
        // "component": require('@/pages/pms/productAttr/index').default,
        "exact": true
      },
      {
        icon: 'smile',
        "path": "productAttrList",
        "name": "productAttrList",
        "component": "@/pages/pms/productAttr/productAttrList",
        // "component": require('@/pages/pms/productAttr/productAttrList').default,
        "exact": true
      },
      {
        icon: 'smile',
        "path": "addProductAttr",
        "name": "addProductAttr",
        "component": "@/pages/pms/productAttr/addProductAttr",
        // "component": require('@/pages/pms/productAttr/addProductAttr').default,
        "exact": true
      },
      {
        icon: 'smile',
        "path": "updateProductAttr",
        "name": "updateProductAttr",
        "component": "@/pages/pms/productAttr/updateProductAttr",
        // "component": require('@/pages/pms/productAttr/updateProductAttr').default,
        "exact": true
      },
      {
        icon: 'smile',
        "path": "brand",
        "name": "brand",
        "component": "@/pages/pms/brand/index",
        // "component": require('@/pages/pms/brand/index').default,
        "exact": true
      },
      {
        icon: 'smile',
        "path": "addBrand",
        "name": "addBrand",
        "component": "@/pages/pms/brand/add",
        // "component": require('@/pages/pms/brand/add').default,
        "exact": true
      },
      {
        icon: 'smile',
        "path": "updateBrand",
        "name": "updateBrand",
        "component": "@/pages/pms/brand/update",
        // "component": require('@/pages/pms/brand/update').default,
        "exact": true
      }
    ]
  },
  {
    icon: 'smile',
    "path": "/oms",
    "component": "@/layouts/BasicLayout",
    // "component": require('@/layouts/BasicLayout').default,
    "name": "订单管理",
    "routes": [
      {
        "path": "order",
        "name": "order",
        "component": "@/pages/oms/order/index",
        // "component": require('@/pages/oms/order/index').default,
        "exact": true
      },
      {
        "path": "orderDetail",
        "name": "orderDetail",
        "component": "@/pages/oms/order/orderDetail",
        // "component": require('@/pages/oms/order/orderDetail').default,
        "hidden": true,
        "exact": true
      },
      {
        "path": "deliverOrderList",
        "name": "deliverOrderList",
        "component": "@/pages/oms/order/deliverOrderList",
        // "component": require('@/pages/oms/order/deliverOrderList').default,
        "hidden": true,
        "exact": true
      },
      {
        "path": "orderSetting",
        "name": "orderSetting",
        "component": "@/pages/oms/order/setting",
        // "component": require('@/pages/oms/order/setting').default,
        "exact": true
      },
      {
        "path": "returnApply",
        "name": "returnApply",
        "component": "@/pages/oms/apply/index",
        // "component": require('@/pages/oms/apply/index').default,
        "exact": true
      },
      {
        "path": "returnReason",
        "name": "returnReason",
        "component": "@/pages/oms/apply/reason",
        // "component": require('@/pages/oms/apply/reason').default,
        "exact": true
      },
      {
        "path": "returnApplyDetail",
        "name": "returnApplyDetail",
        "component": "@/pages/oms/apply/applyDetail",
        // "component": require('@/pages/oms/apply/applyDetail').default,
        "hidden": true,
        "exact": true
      }
    ]
  },
  {
    "path": "/sms",
    "component": "@/layouts/BasicLayout",
    // "component": require('@/layouts/BasicLayout').default,
    "name": "售后管理",
    icon: 'smile',
    "routes": [
      {
        "path": "flash",
        "name": "flash",
        "component": "@/pages/sms/flash/index",
        // "component": require('@/pages/sms/flash/index').default,
        "exact": true
      },
      {
        "path": "flashSession",
        "name": "flashSession",
        "component": "@/pages/sms/flash/sessionList",
        // "component": require('@/pages/sms/flash/sessionList').default,
        "exact": true
      },
      {
        "path": "selectSession",
        "name": "selectSession",
        "component": "@/pages/sms/flash/selectSessionList",
        // "component": require('@/pages/sms/flash/selectSessionList').default,
        "exact": true
      },
      {
        "path": "flashProductRelation",
        "name": "flashProductRelation",
        "component": "@/pages/sms/flash/productRelationList",
        // "component": require('@/pages/sms/flash/productRelationList').default,
        "exact": true
      },
      {
        "path": "coupon",
        "name": "coupon",
        "component": "@/pages/sms/coupon/index",
        // "component": require('@/pages/sms/coupon/index').default,
        "exact": true
      },
      {
        "path": "addCoupon",
        "name": "addCoupon",
        "component": "@/pages/sms/coupon/add",
        // "component": require('@/pages/sms/coupon/add').default,
        "exact": true
      },
      {
        "path": "updateCoupon",
        "name": "updateCoupon",
        "component": "@/pages/sms/coupon/update",
        // "component": require('@/pages/sms/coupon/update').default,
        "exact": true
      },
      {
        "path": "couponHistory",
        "name": "couponHistory",
        "component": "@/pages/sms/coupon/history",
        // "component": require('@/pages/sms/coupon/history').default,
        "exact": true
      },
      {
        "path": "brand",
        "name": "homeBrand",
        "component": "@/pages/sms/brand/index",
        // "component": require('@/pages/sms/brand/index').default,
        "exact": true
      },
      {
        "path": "new",
        "name": "homeNew",
        "component": "@/pages/sms/new/index",
        // "component": require('@/pages/sms/new/index').default,
        "exact": true
      },
      {
        "path": "hot",
        "name": "homeHot",
        "component": "@/pages/sms/hot/index",
        // "component": require('@/pages/sms/hot/index').default,
        "exact": true
      },
      {
        "path": "subject",
        "name": "homeSubject",
        "component": "@/pages/sms/subject/index",
        // "component": require('@/pages/sms/subject/index').default,
        "exact": true
      },
      {
        "path": "advertise",
        "name": "homeAdvertise",
        "component": "@/pages/sms/advertise/index",
        // "component": require('@/pages/sms/advertise/index').default,
        "exact": true
      },
      {
        "path": "addAdvertise",
        "name": "addHomeAdvertise",
        "component": "@/pages/sms/advertise/add",
        // "component": require('@/pages/sms/advertise/add').default,
        "exact": true
      },
      {
        "path": "updateAdvertise",
        "name": "updateHomeAdvertise",
        "component": "@/pages/sms/advertise/update",
        // "component": require('@/pages/sms/advertise/update').default,
        "exact": true
      }
    ]
  },
  {
    "path": "/ums",
    "component": "@/layouts/BasicLayout",
    // "component": require('@/layouts/BasicLayout').default,
    "name": "用户管理",
    icon: 'smile',
    "routes": [
      {
        "path": "admin",
        "name": "admin",
        "component": "@/pages/ums/admin/index",
        // "component": require('@/pages/ums/admin/index').default,
        "exact": true
      },
      {
        "path": "role",
        "name": "role",
        "component": "@/pages/ums/role/index",
        // "component": require('@/pages/ums/role/index').default,
        "exact": true
      },
      {
        "path": "allocMenu",
        "name": "allocMenu",
        "component": "@/pages/ums/role/allocMenu",
        // "component": require('@/pages/ums/role/allocMenu').default,
        "exact": true
      },
      {
        "path": "allocResource",
        "name": "allocResource",
        "component": "@/pages/ums/role/allocResource",
        // "component": require('@/pages/ums/role/allocResource').default,
        "exact": true
      },
      {
        "path": "menu",
        "name": "menu",
        "component": "@/pages/ums/menu/index",
        // "component": require('@/pages/ums/menu/index').default,
        "exact": true
      },
      {
        "path": "addMenu",
        "name": "addMenu",
        "component": "@/pages/ums/menu/add",
        // "component": require('@/pages/ums/menu/add').default,
        "exact": true
      },
      {
        "path": "updateMenu",
        "name": "updateMenu",
        "component": "@/pages/ums/menu/update",
        // "component": require('@/pages/ums/menu/update').default,
        "exact": true
      },
      {
        "path": "resource",
        "name": "resource",
        "component": "@/pages/ums/resource/index",
        // "component": require('@/pages/ums/resource/index').default,
        "exact": true
      },
      {
        "path": "resourceCategory",
        "name": "resourceCategory",
        "component": "@/pages/ums/resource/categoryList",
        // "component": require('@/pages/ums/resource/categoryList').default,
        "exact": true
      }
    ]
   },
  // {
  //   path: '/',
  //   redirect: '/login',
  // },
  // {
  //   component: './404',
  // },
];
